<div data-page="<{$pageName}>" class="page">
	<style>.think-copy {
		position: absolute;
		top: -1px;
		right: -1px;
		width: 80px;
		height: 27px;
		line-height: 27px;
		text-align: center;
		border: 1px solid #CCC;
		background-color: #FFF;
	}</style>
	<link rel="stylesheet" href="__PUBLIC__/Js/jquery.plug/prettify/prettify.css" type="text/css">
	<script type="text/javascript" src="__PUBLIC__/Js/jquery.plug/prettify/prettify.js"></script>
	<script type="text/javascript" src="__PUBLIC__/Js/jquery.plug/zclip/jquery.zclip.min.js"></script>
	
	<div class="page-content container text">
		<div id="post-<{$data.id}>" class="hentry">
			<div class="date">
		<!--		<p><span class="day"><{:date('d',$data['dateline'])}></span><{:date('m月 / y',$data['dateline'])}></p>-->
			</div>
			<div class="content"> 
			<h1 class="entry-title"><{$data.title}></h1>
			<div class="entry-content"><{$data.content}></div>
			</div>
		</div>
	</div>
<script>
	$(function(){
		$('code').each(function(){
			$(this).data('think-source', (this.innerText || this.textContent).replace(/ /g, ' '));
		});
		prettyPrint();
		$('code').each(function(){
			var self = $(this);
			var copy = $('<div><span>复制代码</span></div>')
					.addClass('think-copy')
					.appendTo(self)
					.zclip({
						'path':'__PUBLIC__/Js/jquery.plug/zclip/ZeroClipboard.swf',
						'afterCopy' : function(){
							dialog('复制成功');
						},
						'copy': function(){
						//	alert(self.closest('code').data('think-source'));
							return self.closest('code').data('think-source');
						}
					});
		});

	})
</script>
</div>
